Skip to main content
POST
/
x
/
articles
/
publish
[Quick] One-step article publish
curl --request POST \
  --url https://api.twexapi.io/x/articles/publish \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "cookie": "<string>",
  "title": "<string>",
  "markdown": "<string>",
  "cover_image": "<string>",
  "visibility": "Public"
}
'
{
  "code": 123,
  "msg": "<string>",
  "data": {
    "article_id": "<string>",
    "tweet_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Twitter cookie string (auth_token=...; ct0=...; twid=...)

title
string
required

Article title

markdown
string
required

Article body in Markdown format

cover_image
string | null

Cover image: https URL or local file path (optional)

visibility
string
default:Public

Visibility: Public / Followers / Mentioned

Response

Successful Response

code
integer
required

200 = success, 429 = rate limit, 500 = server error

msg
string
required

Human-readable result message

data
ArticlePublishData · object